package org.jeecg.modules.app.service.impl;

import org.jeecg.modules.app.entity.FoodCategory;
import org.jeecg.modules.app.mapper.CustomerMapper;
import org.jeecg.modules.app.mapper.FoodMapper;
import org.jeecg.modules.app.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 李圳川
 * @version 1.0
 * @date 2022/6/12 16:14
 * @content
 */
@Service
public class FoodServiceImpl implements FoodService {

    @Autowired
    private FoodMapper foodMapper;

    /**
     * 菜品查询
     * @param createBy
     * @return
     */
    @Override
    public ArrayList<FoodCategory> findAllFoodByCreateBy(String createBy) {
        ArrayList<FoodCategory> foodCategoryList = foodMapper.findAllFoodByCreateBy(createBy);
        return foodCategoryList;
    }
}
